package com.ahsjdy.st.stdao.mapper;

import com.ahsjdy.st.stdao.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderDetail record);

    int insertSelective(OrderDetail record);

    OrderDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderDetail record);

    int updateByPrimaryKey(OrderDetail record);

    int countSales(@Param("commodityId") Integer commodityId,
                   @Param("status") Integer status);

    List<OrderDetail> listByOrderId(@Param("orderId") Integer orderId);
}